package com.smkj.kaoqin.common.enumeration;

/**
 * @Author: dongl
 * @Email: dong980514280@gmail.com
 * @Create: 2024-04-06 14:15:22
 * @PS 全局异常枚举类
**/
public enum GlobalExceptionEnum {

    PK_NULL_ERROR(400, "pk不能为空"),

    DATA_NULL_ERROR(400, "数据为空"),

    REPEAT_REGISTRATION_ERROR(400, "你已经报名，请不要重复报名！"),

    NOT_FOUND_ERROR(404, "没有找到资源"),

    ERROR(1000, "我是异常弹出框"),

    ERROP_USER_PASSWORD(1000, "用户名不存在或者密码错误"),

    ERROP_TEACHER_NAME(1001, "教师名称不一致"),
    ID_BLANK_ERROR(1000, "id不能为空"),

    ERROP_PASSWORD(1001, "密码错误"),

    WARNING(2000, "我是警告弹出框"),

    NOT_NO_WARNING(2001, "学号不存在！"),

    NOT_GATE_WARNING(2002, "闸机编号不存在"),

    NOT_GATE_ERROR(2010, "闸机状态有问题"),

    LOGOUT_SUCCESS(200, "退出成功"),

    MODIFY_PASSWORD_SUCCESS(200, "修改密码成功"),

    RESET_PASSWORD_SUCCESS(200, "重置密码成功"),

    PERMISSION_DENIED(403, "没有权限"),

    CONSTRAINT_VIOLATION_ERROR(10001, "认证错误"),

    STUDENT_NO_BLANK_ERROR(1000, "学生学号不能为空"),

    DCCLOSURE_MEDIUM_DUPLICATE(1000, "请不要重复提交中期检查"),

    NULL_ERROR(1000, "为空报错"),

    ENLIST_DEADLINE(500, "截止报名"),

    SUCCESS(200, "成功");

    private Integer code;

    private String message;

    GlobalExceptionEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
